package cn.psvmc.cxzapi.mapper.order;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.order.TOrderDeliveryRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单快递记录表 Mapper 接口
 *
 * @Author auto
 * @Date 2024-09-18
 */
public interface TOrderDeliveryRecordMapper extends MyBaseMapper<TOrderDeliveryRecord> {

    //获取订单快递记录
    List<Map<String, Object>> listByOdid(@Param("odid") Object odid);

    //批量插入订单快递记录
    void insertBatch(@Param("records") List<Map<String, Object>> records, @Param("odid") Object odid);

    //删除订单快递记录
    void deleteByOdIds(@Param("odIds") List<Integer> odIds);

    //删除单个订单快递记录
    void deleteByOdId(@Param("odid") Integer odid);
}
